package com.yuanfud.user.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yuanfud
 * @date 2018-07-27-15:46
 * @PACKAGE com.yuanfud.user.controller
 **/
@RestController
@RefreshScope
public class TestController {
    @Value("${spring.datasource.url}")
    private String from;
    @RequestMapping(value = "/from")
    public String index(){
        return from;
    }
}
